import request from '@/utils/request'

// 查询历史记录列表
export function listWrong(query) {
  return request({
    url: '/SysWrong/wrong/list',
    method: 'get',
    params: query
  })
}

// 查询历史记录详细
export function getWrong(id) {
  return request({
    url: '/SysWrong/wrong/' + id,
    method: 'get'
  })
}

// 新增历史记录
export function addWrong(data) {
  return request({
    url: '/SysWrong/wrong',
    method: 'post',
    data: data
  })
}

// 修改历史记录
export function updateWrong(data) {
  return request({
    url: '/SysWrong/wrong',
    method: 'put',
    data: data
  })
}

// 删除历史记录
export function delWrong(id) {
  return request({
    url: '/SysWrong/wrong/' + id,
    method: 'delete'
  })
}
